/*
 * @Author: dlb
 * @Date: 2020-06-24 17:13:41
 * @LastEditTime: 2020-06-24 17:25:44
 * @LastEditors: dlb
 * @Description:
 * @FilePath: \react-training-camp\server\src\controller\slider.ts
 * @可以输入预定的版权声明、个性签名、空行等
 */
import { Request, Response } from 'express'
import { ISliderDocument, Slider } from '../models'
export const list = async (_req: Request, res: Response) => {
  let sliders: ISliderDocument[] = await Slider.find()
  res.json({ success: true, data: sliders })
}
